#ifndef __IMA_CONF_H__
#define __IMA_CONF_H__

#include <jansson.h>

class ImaConf {
	public:
		ImaConf(char* pConffile);
		int parseConfFile();
		int readDbInfo(json_t* pDbRoot);
		int readSmtpInfo(json_t* pSmtpRoot);
		int readMqInfo(json_t* pMqRoot);

		unsigned int mPollingInterval;
		char mConfFile[256];
		char mDbHostname[256];
		int mDbPort;
		char mDbName[256];
		char mDbUsername[256];
		char mDbPassword[256];
		char mSmtpHost[128];
		int mSmtpPort;
		char mSmtpUsername[128];
		char mSmtpPassword[128];

		key_t mSysVRegConfCodeMsgQKey;		//TODO: in the next release remove this and make use of the key name and generate the key from that
		key_t mSysVNewPasswordQKey;			//TODO: in the next release remove this and make use of the key name and generate the key from that
		key_t mSysVUserFeedbackQKey;		//TODO: as above

};

#endif
